package com.ruoyi.project.newhope.schedule.mapper;

import com.ruoyi.project.newhope.schedule.domain.SpringScheduledCron;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SpringScheduledCronMapper {

    @Select("select * from spring_scheduled_cron")
    List<SpringScheduledCron> findAll();

    @Select("select * from spring_scheduled_cron where cron_key=#{cronKey}")
    SpringScheduledCron findByCronKey(@Param("cronKey") String cronKey);
}
